package com.binance.notification.api.vo;

import com.binance.master.commons.ToString;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;

/**
 * @author lufei
 * @date 2018/11/5
 */
@Setter
@Getter
@ApiModel("消息推送明细信息")
public class MessagePushDetailVo extends ToString {

    private static final long serialVersionUID = -7429984714142481354L;

    @ApiModelProperty("消息推送明细ID")
    private Long id;

    @ApiModelProperty("消息推送主体ID")
    private Long messageId;

    @ApiModelProperty("语言代码")
    @NotBlank(message = "语言代码不能为空")
    private String language;

    @ApiModelProperty("标题")
    @NotBlank(message = "通知标题不能为空")
    @Length(max = 32, message = "通知标题不能超过32个字符长度")
    private String title;

    @ApiModelProperty("内容")
    @NotBlank(message = "通知内容不能为空")
    @Length(max = 32, message = "通知内容不能超过100个字符长度")
    private String content;

    @ApiModelProperty("创建人")
    private String creator;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("修改人")
    private String updateUser;

    @ApiModelProperty("状态，0正常，1删除")
    private Integer status;

}
